package com.lx.patterns.mediator;

/**
 * @ClassName Client
 * @Description: 客户端
 * @Author: 落雪
 * @CreateDate: 2025/2/15 10:43
 * @UpdateUser: 落雪
 * @UpdateDate: 2025/2/15 10:43
 * @UpdateRemark:
 * @Version: 1.0
 */
public class Client {


    public static void main(String[] args) {
        MediatorStructure mediatorStructure = new MediatorStructure();

        HouseOwner houseOwner = new HouseOwner("张三",mediatorStructure);

        Tenant tenant = new Tenant("李四",mediatorStructure);

        mediatorStructure.setHouseOwner(houseOwner);

        mediatorStructure.setTenant(tenant);

        tenant.contact("我要租房子");
    }
}
